import React, { useEffect, useState } from 'react'
import './index.scss'
import T from 'prop-types'

export default function TextContent(props) {
  const { title ,content} = props
  useEffect(() => {
    // getInfo()
  }, [])

  return (
    <div className="text-card">
      {title ? <div className="text-card-title"> {title} </div> : ''}
      {content}
    </div>
  )
}

TextContent.propTypes = {
  title: T.string,
  content:T.string
}
